// Copyright 2023 Srhino Co., Ltd. All rights reserved.

package core

import (
	"git.ouryun.cn/lzj1/grpc-bidirectional-stream/pkg/apis/v3"
)

type GrpcServer interface {
	Start() error
	Stop()
}

type GrpcClient interface {
	Start() error
	Stop()
	Request(message *v3.StreamMessage) (*v3.StreamMessage, error)
	Response(message *v3.StreamMessage, messageId uint64)
}
